from langchain.prompts import load_prompt

prompt = load_prompt("file/simple_prompt.yaml")
print(prompt.format(adjective="funny", content="chickens"))

json_prompt = load_prompt("file/simple_prompt_with_template_file.json")
print(json_prompt.format(adjective="funny", content="chickens"))

few_shot_prompt = load_prompt("file/few_shot_prompt.yaml")
print(prompt.format(adjective="funny", content="chickens"))

few_shot_prompt_yaml_examples = load_prompt("few_shot_prompt_yaml_examples.yaml")
print(prompt.format(adjective="funny"))

prompt_with_output_parser = load_prompt("prompt_with_output_parser.json")
prompt_with_output_parser.output_parser.parse("George Washington was born in 1732 and died in 1799.\nScore: 1/2")